﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdmTestStuManage.aspx.cs"
    Inherits="LIMS.Web.AdmTestStuManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jQuery/Common/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.core.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="jQuery/Common/jquery.ui.datepicker-fr-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#<%=txtDatePicker.ClientID %>").datepicker({
                changeMonth: true
            });

            $("#<%=btnOK.ClientID %>").click(function () {
                //将字符串转换为日期
                var txtDate = new Date($("#<%=txtDatePicker.ClientID %>").val().replace(/-/g, "/"));
                var nowDate = new Date().getDate();
                //js判断日期
                if (txtDate - nowDate < 0) {
                    alert("预约实验日期必须在今天之后!");
                    return false;
                }
                return true;
            });
            $("#Reset1").click(function () {
                $("#txtProId").val("");
                $("#txtProName").val("");
                $("#txtProjectDate").val("");
                $("#txtStudentNumber").val("");
                $("#txtContent").val("");
            });
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <table style="width: 700" border="0.5">
            <tr>
                <td height="60" width="600">
                    &nbsp;&nbsp;<strong style="font-size: 24px;">实验项目编辑</strong>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 100%" border="1" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="center">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>实验名称</font>
                                &nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProName" runat="server" CssClass="box-3" MaxLength="50" Style="margin-left: 15px;"
                                    Width="215px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtProName"
                                    Display="Static" ErrorMessage="实验名称不能为空" ForeColor="#AA11FF" Style="margin-left: 40px;"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>实验日期</font>
                                &nbsp;
                            </td>
                            <td>
                                <asp:TextBox ID="txtDatePicker" runat="server" Style="margin-left: 20px; float: left;
                                    margin-left: 15px;" Width="140px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>学生总数</font>
                                &nbsp;
                            </td>
                            <td align="left">
                                <select id="selStuCount" runat="server" style="margin-left: 15px; width: 135px;">
                                    <option value="-1">选择学生总数</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <font size="2"><span style="color: #ff0000">* <font size="2"></font></span>详细说明</font>
                                &nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtContent" runat="server" CssClass="box-3" Rows="15" TextMode="MultiLine"
                                    Style="margin-left: 15px;" Height="100px" Width="446px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnOK" runat="server" Text="保存提交" OnClick="btnOK_Click" Style="height: 30px;
                                    font-size: 17px;" />&nbsp;&nbsp;
                                <input id="Reset1" type="reset" value="重新填写" style="height: 30px; font-size: 17px;" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
